//
//  WDTarget_ArrivalService.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/2.
//

#import "WDTarget_ArrivalService.h"
#import "WDArrivalServiceViewController.h" // 到站服务根视图
#import "WDArrivalServiceItemViewController.h" // 到站服务子视图
#import "WDWorderOrderWaitVehicleViewController.h" // 到站服务-工单界面-待接车
#import "WDWorderOrderWaitVehicleDetailViewController.h" // 待接车 详情
#import "WDScanCodeMeetCarViewController.h" // 扫码接车
#import "WDCancelWorkOrderViewController.h" // 到站服务-工单界面-取消工单
#import "WDWorderOrderReviewVehicleViewController.h" // 到站服务-工单界面-检查中
#import "WDWorderOrderReviewVehDetailViewController.h" // 到站服务-工单界面-检查中-详情
#import "WDStartMaintainScanCodeViewController.h" // 到站服务-工单界面-检查中-扫码
#import "WDWorderOrderMaintenanceVehicleViewController.h" // 到站服务-工单界面-维修中
#import "WDWorderOrderMainVehDetailViewController.h" // 到站服务-工单界面-维修中-详情
#import "WDWorderOrderMainVehScanCodeViewController.h" // 到站服务-工单界面-维修中-扫码
#import "WDWorderOrderPendingVehicleViewController.h" // 到站服务-工单界面-待报单
#import "WDWorderOrderPendingVehDetailViewController.h" // 到站服务-工单界面-待报单-详情
#import "WDScanCodeViewController.h" // 扫码
#import "WDServiceWorkOrderDetailViewController.h" // 工单详情
#import "WDInputVinPlateNumberViewController.h" // 输入vin码 或 车牌号

@implementation WDTarget_ArrivalService

/// 到站服务根
/// - Parameter params: params description
- (UIViewController *)action_rootArrivalService:(NSDictionary *)params {
    NSArray *subVC = [WDArrivalServiceViewController setupViewControllers:@{}];
    NSArray *titles = [WDArrivalServiceViewController setupMenuTitles];
    TYZPageConfigration *config = [WDArrivalServiceViewController setupConfig];
    WDArrivalServiceViewController *vc = [[WDArrivalServiceViewController alloc] initPageWithControllers:subVC titles:titles config:config];
    
    return vc;
}

/// 到站服务子视图
/// - Parameter params: params description
- (UIViewController *)action_rootArrivalServiceItem:(NSDictionary *)params {
    WDArrivalServiceItemViewController *vc = [[WDArrivalServiceItemViewController alloc] init];
    vc.typeName = params[@"typeName"];
    vc.servFlow = [params[@"servFlow"] integerValue];
    return vc;
}

/// 到站服务-工单界面-待接车
/// - Parameter params: params description
- (UIViewController *)action_serviceOrderWaitVehicle:(NSDictionary *)params {
    WDWorderOrderWaitVehicleViewController *vc = [WDWorderOrderWaitVehicleViewController new];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    return vc;
}

/// 待接车 详情
/// - Parameter params: params description
- (UIViewController *)action_serviceOrderWaitVehDetail:(NSDictionary *)params {
    WDWorderOrderWaitVehicleDetailViewController *vc = [[WDWorderOrderWaitVehicleDetailViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    return vc;
}
//#import "WDWorderOrderWaitVehicleDetailViewController.h" // 待接车 详情

/// 到站服务-工单界面-待接车 - 扫码接车
/// - Parameter params: params description
- (UIViewController *)action_scanCodeMeetCar:(NSDictionary *)params {
    WDScanCodeMeetCarViewController *vc = [[WDScanCodeMeetCarViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.scanTitle = params[@"scanTitle"];
    vc.tipInfo = params[@"tipInfo"];
    vc.popResultBlock = params[@"block"];
    return vc;
}
// WDScanCodeMeetCarViewController

/// 到站服务-工单界面-取消工单
/// - Parameter params: params description
- (UIViewController *)action_serviceCancelWorkOrder:(NSDictionary *)params {
    WDCancelWorkOrderViewController *vc = [[WDCancelWorkOrderViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    return vc;
}


/// 扫码
/// - Parameter params: params description
- (UIViewController *)action_serviceScanCode:(NSDictionary *)params {
    WDScanCodeViewController *vc = [[WDScanCodeViewController alloc] init];
    vc.scanTitle = params[@"scanTitle"];
    vc.tipInfo = params[@"tipInfo"];
    vc.fromWhere = [params[@"fromWhere"] integerValue];
    vc.popResultBlock = params[@"block"];
    return vc;
}

/// 到站服务-工单界面-工单详情
/// - Parameter params: params description
- (UIViewController *)action_serviceWorkOrderDetail:(NSDictionary *)params {
    WDServiceWorkOrderDetailViewController *vc = [[WDServiceWorkOrderDetailViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    
    return vc;
}

/// 到站服务-工单界面-检查中
/// - Parameter params: params description
- (UIViewController *)action_serviceOrderReviewVehicle:(NSDictionary *)params {
    WDWorderOrderReviewVehicleViewController *vc = [[WDWorderOrderReviewVehicleViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    
    return vc;
}

/// 到站服务-工单界面-检查中-详情
/// - Parameter params: params description
- (UIViewController *)action_serviceOrderReviewVehDetail:(NSDictionary *)params {
    WDWorderOrderReviewVehDetailViewController *vc = [[WDWorderOrderReviewVehDetailViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    
    return vc;
}
// #import "WDWorderOrderReviewVehDetailViewController.h" // 到站服务-工单界面-检查中-详情

/// 到站服务-工单界面-检查中-扫码
/// - Parameter params: params description
- (UIViewController *)action_startMaintainScanCode:(NSDictionary *)params {
    WDStartMaintainScanCodeViewController *vc = [[WDStartMaintainScanCodeViewController alloc] init];
    vc.scanTitle = params[@"scanTitle"];
    vc.tipInfo = params[@"tipInfo"];
    vc.serviceModel = params[@"serviceModel"];
    vc.reqModel = params[@"reqModel"];
    vc.popResultBlock = params[@"block"];
    return vc;
}
//#import "WDStartMaintainScanCodeViewController.h" // 到站服务-工单界面-检查中-扫码

/// 到站服务-工单界面-维修中
/// - Parameter params: params description
- (UIViewController *)action_serviceOrderMaintenanceVehicle:(NSDictionary *)params {
    WDWorderOrderMaintenanceVehicleViewController *vc = [[WDWorderOrderMaintenanceVehicleViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    
    return vc;
}

/// 到站服务-工单界面-维修中-详情
/// - Parameter params: params description
- (UIViewController *)action_serviceOrderMainVehDetail:(NSDictionary *)params {
    WDWorderOrderMainVehDetailViewController *vc = [[WDWorderOrderMainVehDetailViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    
    return vc;
}
//#import "WDWorderOrderMainVehDetailViewController.h" // 到站服务-工单界面-维修中-详情

/// 到站服务-工单界面-维修中-扫码
/// - Parameter params: params description
- (UIViewController *)action_serviceOrderMainVehScanCode:(NSDictionary *)params {
    WDWorderOrderMainVehScanCodeViewController *vc = [[WDWorderOrderMainVehScanCodeViewController alloc] init];
    vc.scanTitle = params[@"scanTitle"];
    vc.tipInfo = params[@"tipInfo"];
    vc.serviceModel = params[@"serviceModel"];
    vc.reqModel = params[@"reqModel"];
    vc.popResultBlock = params[@"block"];
    return vc;
}
//#import "WDWorderOrderMainVehScanCodeViewController.h" // 到站服务-工单界面-维修中-扫码

/// 到站服务-工单界面-待报单
/// - Parameter params: params description
- (UIViewController *)action_serviceOrderPendingVehicle:(NSDictionary *)params {
    WDWorderOrderPendingVehicleViewController *vc = [[WDWorderOrderPendingVehicleViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    
    return vc;
}

/// 到站服务-工单界面-待报单-详情
/// - Parameter params: params description
- (UIViewController *)action_serviceOrderPendingVehDetail:(NSDictionary *)params {
    WDWorderOrderPendingVehDetailViewController *vc = [[WDWorderOrderPendingVehDetailViewController alloc] init];
    vc.serviceModel = params[@"serviceModel"];
    vc.popResultBlock = params[@"block"];
    
    return vc;
}
//#import "WDWorderOrderPendingVehDetailViewController.h" // 到站服务-工单界面-待报单-详情

/// 输入vin码 或 车牌号
/// - Parameter params: params description
- (UIViewController *)action_inputVinPlateNumber:(NSDictionary *)params {
    WDInputVinPlateNumberViewController *vc = [[WDInputVinPlateNumberViewController alloc] init];
    vc.inputType = [params[@"inputType"] integerValue];
    vc.popResultBlock = params[@"block"];
    
    return vc;
}
// #import "WDInputVinPlateNumberViewController.h" // 输入vin码 或 车牌号


@end
